<?php /* Smarty version Smarty-3.1.12, created on 2013-04-10 21:41:56
         compiled from "D:\wamp\www\acps_new\templates\reports\worked_hours.tpl" */ ?>
<?php /*%%SmartyHeaderCode:309665165bbf64f3df6-96521043%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '43c836735b9bd056bfe0b137fe6414170dbce783' => 
    array (
      0 => 'D:\\wamp\\www\\acps_new\\templates\\reports\\worked_hours.tpl',
      1 => 1365630109,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '309665165bbf64f3df6-96521043',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_5165bbf64f5c56_81682609',
  'variables' => 
  array (
    'data' => 0,
    'key' => 0,
    'row' => 0,
    'value' => 0,
    'sum' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5165bbf64f5c56_81682609')) {function content_5165bbf64f5c56_81682609($_smarty_tpl) {?><h2 class="pageTitle">Analysis of worked hours</h2>
<?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['data']->value['pathToError'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


<div style="margin: 1em;">
    <a target="_blank" href="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
print.php?input=worked_hours" class="basicButton">Print this report</a>
</div>

<table class="list">
    <tr>
        <td></td>
        <?php  $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['key']->_loop = false;
 $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value['keys']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['key']->key => $_smarty_tpl->tpl_vars['key']->value){
$_smarty_tpl->tpl_vars['key']->_loop = true;
 $_smarty_tpl->tpl_vars['i']->value = $_smarty_tpl->tpl_vars['key']->key;
?>
            <th><?php echo $_smarty_tpl->tpl_vars['key']->value['description'];?>
</th>
        <?php } ?>
    </tr>
    <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value['output']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
 $_smarty_tpl->tpl_vars['i']->value = $_smarty_tpl->tpl_vars['row']->key;
?>
        <tr>
            <th><?php echo $_smarty_tpl->tpl_vars['row']->value['user']['name'];?>
 <?php echo $_smarty_tpl->tpl_vars['row']->value['user']['surname'];?>
</th>
            <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
 $_smarty_tpl->tpl_vars['j'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['row']->value['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
$_smarty_tpl->tpl_vars['value']->_loop = true;
 $_smarty_tpl->tpl_vars['j']->value = $_smarty_tpl->tpl_vars['value']->key;
?>
                <td class="printCenter">
                    <a class="printA" target="_blank" href="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=timesheets&amp;af=<?php echo $_smarty_tpl->tpl_vars['value']->value['filter'];?>
" class="baseLink"><?php echo $_smarty_tpl->tpl_vars['value']->value['withAC'];?>
/<?php echo $_smarty_tpl->tpl_vars['value']->value['withoutAC'];?>
</a>
                </td>
            <?php } ?>
        </tr>
    <?php } ?>
    <tr>
        <th>Spolu</th>
        <?php  $_smarty_tpl->tpl_vars['sum'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sum']->_loop = false;
 $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value['sums']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['sum']->key => $_smarty_tpl->tpl_vars['sum']->value){
$_smarty_tpl->tpl_vars['sum']->_loop = true;
 $_smarty_tpl->tpl_vars['i']->value = $_smarty_tpl->tpl_vars['sum']->key;
?>
            <th><?php echo $_smarty_tpl->tpl_vars['sum']->value['with'];?>
/<?php echo $_smarty_tpl->tpl_vars['sum']->value['without'];?>
</th>
        <?php } ?>
    </tr>
</table><?php }} ?>